package com.sxbbc.common.core.entity.jz;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 用户收货地址表
 * </p>
 *
 * @author leehao
 * @since 2019-05-15
 */
@TableName("c_received_addr")
public class CReceivedAddr extends Model<CReceivedAddr> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 收货人名称
     */
    private String name;

    /**
     * 收货人联系电话
     */
    private String phone;

    /**
     * 省id
     */
    private Integer proId;

    /**
     * 市id
     */
    private Integer cityId;

    /**
     * 区域id
     */
    private Integer areaId;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 是否默认 0不是默认 1是默认
     * 去t为了区分关键字
     */
    private Integer defaul;

    /**
     * 邮编
     */
    private String zipCode;

    /**
     * 地区
     */
    private String nameExt;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 完整收货地址 回显
     */
    @TableField(exist = false)
    private String detail;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }
    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }
    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getDefaul() {
        return defaul;
    }

    public void setDefaul(Integer defaul) {
        this.defaul = defaul;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }
    public String getNameExt() {
        return nameExt;
    }

    public void setNameExt(String nameExt) {
        this.nameExt = nameExt;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CReceivedAddr{" +
        "id=" + id +
        ", cid=" + cid +
        ", name=" + name +
        ", phone=" + phone +
        ", proId=" + proId +
        ", cityId=" + cityId +
        ", areaId=" + areaId +
        ", address=" + address +
        ", defaul=" + defaul +
        ", zipCode=" + zipCode +
        ", nameExt=" + nameExt +
        ", createtime=" + createtime +
        "}";
    }
}
